<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8" />
</head>
<body>
    <div th:fragment="editBlock" class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" style="display: none">
        <div class="modal-dialog">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span
                            aria-hidden="true">&times;</span></button>
                    <h4 class="modal-title" id="myModalLabel"></h4>
                </div>
                <form id="editform" class="modal-body" action="#" >
                    <input type="hidden" name="guid"  />

                    <div class="form-group">
                        <label  class="form-label" th:for="interfaceId" >接口编号</label>
                        <input type="text"  name="interfaceId"  class="form-control"/>
                        <span  class="has-error"  id="interfaceId_errorMsg"/>
                    </div>
                    <div class="form-group">
                        <label  class="form-label" th:for="interfaceApi" >接口API</label>
                        <input type="text"  name="interfaceApi"  class="form-control"/>
                        <span  class="has-error"  id="interfaceApi_errorMsg"/>
                    </div>
                    <div class="form-group">
                        <label  class="form-label" th:for="interfaceName" >接口名称</label>
                        <input type="text"  name="interfaceName"  class="form-control"/>
                        <span  class="has-error"  id="interfaceName_errorMsg"/>
                    </div>

                    <div class="form-group" >
                        <label  class="form-label" th:for="interfaceType">接口类型</label>
                        <div class="radio-content">
                            <div class="radio-item"><input type="radio" name="interfaceType"  value="callIn" />callIn</div>
                            <div class="radio-item"><input type="radio" name="interfaceType"  value="callOut"/>callOut</div>
                        </div>
                         <span  class="has-error"  id="interfaceType_errorMsg"/>
                    </div>
                    <div class="form-group" >
                        <label  class="form-label" th:for="enable"  >启用</label>
                        <div class="radio-content">
                            <div class="radio-item"><input type="radio" name="enable"  value="1" />启用</div>
                            <div class="radio-item"><input type="radio" name="enable"  value="0" />禁用</div>
                       </div>
                        <span  class="has-error"  id="enable_errorMsg"/>
                    </div>
                    <div class="form-group" >
                        <label  class="form-label" th:for="usingMq"  >队列</label>
                        <div class="radio-content">
                            <div class="radio-item"><input type="radio" name="usingMq"  value="1" />使用</div>
                            <div class="radio-item"><input type="radio" name="usingMq"  value="0" />不用</div>
                        </div>
                        <span  class="has-error"  id="usingMq_errorMsg"/>
                    </div>
                    <div class="form-group  form-group-line">
                        <label  class="form-label" th:for="interfaceUrl" >接口URL</label>
                        <input type="text"  name="interfaceUrl"  class="form-control"  placeholder="例如：/payment/notify"/>
                        <span  class="has-error"  id="interfaceUrl_errorMsg"/>
                    </div>
                    <div class="form-group form-textarea">
                        <label  class="form-label" th:for="interfaceRemark" >接口说明</label>
                        <textarea  name="interfaceRemark"  class="form-control" th:inline="text"/>
                        <span class="has-error" id="interfaceRemark_errorMsg"/>
                    </div>
                </form>
                <div class="modal-footer">
                    <button type="button" class="model-btn" data-dismiss="modal">关闭</button>
                    <button type="button" class="model-btn" th:onclick="'javascript:formSave(\'interfaces\');'">保存</button>
                </div>
            </div>
        </div>
    </div>

</body>
</html>